package com.snmp.test.snmp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @Author WangChao
 * @Description //TODO 程序启动时执行(实现ApplicationRunner的run方法)
 * @Date 13:59 2019/6/18
 * @Param
 * @return
 **/
@Component
public class SnmpTrapReceiver implements ApplicationRunner {

    @Autowired
    private MultiThreadedTrapReceiver multiThreadedTrapReceiver;

    @Override
    public void run(ApplicationArguments applicationArguments) throws Exception {
        multiThreadedTrapReceiver.run();
    }
}
